home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 2005 Utilities
/
CHIP Utilities 2005.7z
/
CHIP Utilities 2005.iso
/
images
/
freedos.img
/
BIN
/
UBCD.BAT
< prev
next >
Wrap
DOS Batch File
|
2004-12-11
|
2KB
|
71 lines
@if "%debug%"=="" echo off
rem ---- Drives ----
echo.
echo BOOTDRV: %srcdrv%
echo RAMDRV: %ramdrv%
echo CDROM (1st): %cd1%
echo.
rem ---- PATH ----
if "%cd1%"=="" goto _nopath
call drd.bat %cd1%
if errorlevel 2 goto _nopath
if not exist %cd1%\dosapps\freedos\bin\*.* goto _no1path
path | tfind /e "%cd1%\dosapps\freedos\bin" >%tmp%\nul
if errorlevel 1 goto _no1path
set PATH=%PATH%;%cd1%\dosapps\freedos\bin
:_no1path
if not exist %cd1%\dosapps\lfntools\*.* goto _no2path
path | tfind /e "%cd1%\dosapps\lfntools" >%tmp%\nul
if errorlevel 1 goto _no2path
set PATH=%PATH%;%cd1%\dosapps\lfntools
:_no2path
:_nopath
rem ---- Show file %ramdrv%\etc\ubcd.txt ----
if not exist %ramdrv%\etc\ubcd.txt goto _msgdone
echo :: >%tmp%\ubcd.tmp
echo :w_msg "UBCD FreeDOS Image Info" [x]>>%tmp%\ubcd.tmp
echo (~press any key~: #? sec.)>>%tmp%\ubcd.tmp
type %ramdrv%\etc\ubcd.txt >>%tmp%\ubcd.tmp
echo. >>%tmp%\ubcd.tmp
echo [ Ok ] [ Browse ] [? Cancel ]>>%tmp%\ubcd.tmp
echo :: >>%tmp%\ubcd.tmp
inifile %ramdrv%\etc\global.set [] ubcd_ti | lmod set ubcd_ti=[$3]>>%tmp%\_ubcd.bat
call %tmp%\_ubcd.bat
del %tmp%\_ubcd.bat > %tmp%\nul
if "%ubcd_ti%"=="" set ubcd_ti=30
call w.bat box @%tmp%\ubcd.tmp:w_msg #1,%ubcd_ti%
if errorlevel 3 goto _end
if errorlevel 2 goto _vc
:_msgdone
rem ---- Jump from BCDW ----
if exist %ramdrv%\bin\bcdw_cl.com %ramdrv%\bin\bcdw_cl.com
if errorlevel 1 goto _menu
if "%bcdw_cdrom%"=="" goto _menu
call drd.bat %bcdw_cdrom%:
if errorlevel 2 goto _menu
%bcdw_cdrom%:
call %bcdw_cl%
goto _menu
rem ---- Launch Menu ----
:_menu
rem ---- Users get confused so we better skip menu ----
rem if exist %ramdrv%\bin\menu.bat call %ramdrv%\bin\menu.bat
goto _end
rem ---- Launch Volkov Commander on CDROM: ----
:_vc
kpush "vc %cd1%" 13
goto _end
rem ---- Done ----
:_end
set ubcd_ti=
set ?=
set wbat=
if exist %tmp%\ubcd.tmp del %tmp%\ubcd.tmp > %tmp%\nul